import request from '~/utils/resquest'

// 获取参数管理列表
export const getSystemParamList = <T>(params: T) => {
  return request({
    url: '/api/gxsaas-system/param/list',
    method: 'get',
    params
  })
}

// 添加参数管理项
export const addSystemParamInfo = <T>(params: T) => {
  return request({
    url: '/api/gxsaas-system/param/add',
    method: 'post',
    data: params
  })
}

// 修改参数管理项
export const updateSystemParamInfo = <T>(params: T) => {
  return request({
    url: '/api/gxsaas-system/param/update',
    method: 'post',
    data: params
  })
}

// 删除参数管理项
export const deleteSystemParamInfo = <T>(params: T) => {
  return request({
    url: '/api/gxsaas-system/param/remove',
    method: 'post',
    params
  })
}
